package com.chapter10.homework_.homework05;

/**
 * @author 宋鑫宇
 * @version 1.0
 */
public class factory {
    private static Horse horse = new Horse();
    private factory(){}
    public static Horse getHorse(){
        return horse;
    }
    public static Boat getBoat(){
        return new Boat();
    }
    public static Plane getPlane(){
        return new Plane();
    }
}
